set term post eps enh color font 16 size 8.5cm,6cm
set out 'fig-j.eps'

set style line 111 lc 1 lw 3 pt 1 lt 1
set style line 112 lc 1 lw 3 pt 1 lt 2
set style line 121 lc 1 lw 3 pt 2 lt 1
set style line 122 lc 1 lw 3 pt 2 lt 2

set style line 231 lc 2 lw 3 pt 3 lt 1
set style line 232 lc 2 lw 3 pt 3 lt 2
set style line 241 lc 2 lw 3 pt 4 lt 1
set style line 242 lc 2 lw 3 pt 4 lt 2

set style line 351 lc 3 lw 3 pt 5 lt 1
set style line 352 lc 3 lw 3 pt 5 lt 2
set style line 361 lc 3 lw 3 pt 6 lt 1
set style line 362 lc 3 lw 3 pt 6 lt 2

set style line 14 lc 4 lw 3 pt 2 lt 1
set style line 15 lc 5 lw 3 pt 2 lt 1

set xrange [-180:180]
set yrange [0:14]
set mxtics 5
set mytics 5
set xlabel "{/Symbol f} [deg]"
set ylabel "Cumulant generating function [kJ/mol]"
set key top right


pl \
   'j.out' u 1:2:3:4 w e ls 111 t'brutal force {/Symbol e}=1.0', '' u 1:($2*1) w l ls 111 not,\
   'step.002/fmpt.out' u 1:($2*1):($3*2) every 3 w e ls 351 t'optimal control {/Symbol e}=1.0', '' u 1:($2*1) w l ls 351 not
   
